package com.ssm.unity;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.SimpleTimeZone;

/**
 * Created by xieyingze on 2017/12/30.
 */
public class UUIDUnity {

    public static String tranformToUUID(String user_phone) {
        //格式为: u_201712301130005402
        SimpleDateFormat format;
        format = new SimpleDateFormat("yyyyMMddHHmmss");
        String str1 = "u_";
        String str2 = format.format(new Date());
        String str3 = user_phone.substring(7);
        return str1 + str2 + str3;
    }
}

